package com.race.repository;

import com.race.entities.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author xc
 */

public interface UserRepository extends JpaRepository<User,Integer> {


    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    Optional<User> findByUsername(String username);


}
